<?php /* Smarty version Smarty-3.1.15, created on 2016-10-13 16:57:09
         compiled from "D:\Program Files (x86)\USBWebserver v8.6\root\jh_source\admin\track\include\template\one_page_shop\order.tpl" */ ?>
<?php /*%%SmartyHeaderCode:146257e3705e578970-38131952%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '2cfa2397c684b75b60bf3f14f1d09871cf066fb9' => 
    array (
      0 => 'D:\\Program Files (x86)\\USBWebserver v8.6\\root\\jh_source\\admin\\track\\include\\template\\one_page_shop\\order.tpl',
      1 => 1476349027,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '146257e3705e578970-38131952',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_57e3705e5da408_82704023',
  'variables' => 
  array (
    'osadmin_action_alert' => 0,
    'osadmin_quick_note' => 0,
    'today_order_nums' => 0,
    'orders' => 0,
    'order_info' => 0,
    'prod_info' => 0,
    'page_html' => 0,
    'osadmin_action_confirm' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_57e3705e5da408_82704023')) {function content_57e3705e5da408_82704023($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<?php echo $_smarty_tpl->getSubTemplate ("navibar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<?php echo $_smarty_tpl->getSubTemplate ("sidebar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<!-- START 以上内容不需更改，保证该TPL页内的标签匹配即可 -->
<?php echo $_smarty_tpl->tpl_vars['osadmin_action_alert']->value;?>

<?php echo $_smarty_tpl->tpl_vars['osadmin_quick_note']->value;?>


<span style="margin-left:90%;">今日订单数：<span style="font-size: 25px;color: green;"><?php echo $_smarty_tpl->tpl_vars['today_order_nums']->value;?>
</span></span>
<div class="block">
    <a href="#page-stats" class="block-heading" data-toggle="collapse">订单列表</a>

    <div id="page-stats" class="block-body collapse in">
        <table class="table table-striped">
            <thead>
            <tr style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">订单号</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">用户名称</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">手机号</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">送货地址</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">留言备注</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">下单时间</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;" rowspan="6">购买商品信息</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">订单状态</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">快递名称</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">当前快递状态</th>
                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">操作</th>
            </tr>
            </thead>
            <tbody>
            <?php  $_smarty_tpl->tpl_vars['order_info'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['order_info']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['orders']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['order_info']->key => $_smarty_tpl->tpl_vars['order_info']->value) {
$_smarty_tpl->tpl_vars['order_info']->_loop = true;
?>
                <tr style="background:#fff;">
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <?php echo $_smarty_tpl->tpl_vars['order_info']->value['order_sn'];?>

                    </td>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <?php echo $_smarty_tpl->tpl_vars['order_info']->value['user_name'];?>

                    </td>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <?php echo $_smarty_tpl->tpl_vars['order_info']->value['phone'];?>

                    </td>

                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <?php echo $_smarty_tpl->tpl_vars['order_info']->value['addres'];?>

                    </td>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <?php echo $_smarty_tpl->tpl_vars['order_info']->value['note'];?>

                    </td>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <?php echo $_smarty_tpl->tpl_vars['order_info']->value['createtime'];?>

                    </td>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">

                        <table class="table table-striped">
                            <thead>
                            <tr style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">商品名称</th>
                                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">商品型号</th>
                                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">数量</th>
                                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">总价</th>
                                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">颜色</th>
                                <th style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">尺寸</th>
                            </tr>
                            </thead>

                            <tbody>
                            <?php  $_smarty_tpl->tpl_vars['prod_info'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['prod_info']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['order_info']->value['prod_infos']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['prod_info']->key => $_smarty_tpl->tpl_vars['prod_info']->value) {
$_smarty_tpl->tpl_vars['prod_info']->_loop = true;
?>
                                <tr style="background:#fff;">
                                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                                        <?php echo $_smarty_tpl->tpl_vars['prod_info']->value['products_name'];?>

                                    </td>
                                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                                        <?php echo $_smarty_tpl->tpl_vars['prod_info']->value['products_model'];?>

                                    </td>
                                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                                        <?php echo $_smarty_tpl->tpl_vars['prod_info']->value['num'];?>

                                    </td>
                                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                                        <?php echo $_smarty_tpl->tpl_vars['prod_info']->value['total_price'];?>

                                    </td>
                                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                                        <?php echo $_smarty_tpl->tpl_vars['prod_info']->value['products_color'];?>

                                    </td>
                                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                                        <?php echo $_smarty_tpl->tpl_vars['prod_info']->value['products_size'];?>

                                    </td>
                                </tr>

                                <?php } ?>
                            </tbody>
                        </table>
                    </td>

                    <?php if ($_smarty_tpl->tpl_vars['order_info']->value['sadOrder']=='1') {?>
                    <td style="background:#fff;color:red;font-size: 14px;font-weight: normal;">
                        疑似恶意订单
                    </td>
                    <?php } else { ?>
                    <td style="background:#fff;color:green;font-size: 14px;font-weight: normal;">
                        正常订单
                    </td>
                    <?php }?>

                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;">
                        <?php echo $_smarty_tpl->tpl_vars['order_info']->value['kd_name'];?>

                    </td>
                    <?php if ($_smarty_tpl->tpl_vars['order_info']->value['kd_status']=='已发货') {?>
                    <td style="background:#fff;color:blue;font-size: 14px;font-weight: normal;">
                        <?php echo $_smarty_tpl->tpl_vars['order_info']->value['kd_status'];?>

                    </td>
                    <?php } else { ?>
                    <td style="background:#fff;color:red;font-size: 14px;font-weight: normal;">
                        <?php echo $_smarty_tpl->tpl_vars['order_info']->value['kd_status'];?>

                    </td>
                    <?php }?>
                    <td style="background:#fff;color:#000;font-size: 14px;font-weight: normal;width: 20%">
                        <?php if ($_smarty_tpl->tpl_vars['order_info']->value['kd_status']!='已发货') {?>
                        <a class="btn btn-info" href="kuaid.php?id=<?php echo $_smarty_tpl->tpl_vars['order_info']->value['order_sn'];?>
" target="_self"
                           title="配置是否发货"
                           alt="配置是否发货">配置是否发货</a>
                        <?php }?>
                        <a class="btn btn-info"
                           href="order_edit_display.php?id=<?php echo $_smarty_tpl->tpl_vars['order_info']->value['order_sn'];?>
"
                           target="_self" title="修改订单信息"
                           alt="修改订单信息">修改订单信息</a>
                        <a class="btn btn-info" onclick="if(confirm('确定删除吗?')==false)return false;"
                           href="order_edit.php?id=<?php echo $_smarty_tpl->tpl_vars['order_info']->value['order_sn'];?>
&action=del"
                           target="_self" title="删除"
                           alt="删除">删除</a>
                    </td>
                </tr>
                <?php } ?>
            </tbody>
        </table>
        <?php echo $_smarty_tpl->tpl_vars['page_html']->value;?>

    </div>
</div>

<!---操作的确认层，相当于javascript:confirm函数--->
<?php echo $_smarty_tpl->tpl_vars['osadmin_action_confirm']->value;?>


<!-- END 以下内容不需更改，请保证该TPL页内的标签匹配即可 -->
<?php echo $_smarty_tpl->getSubTemplate ("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
